package chain;

public class FaultHandler extends SafetyHandler {
    @Override
    public void handleRequest(SafetyRequest request) {
        if (request.getRequestType().equals("FAULT")) {
            System.out.println("FaultHandler: Handling equipment fault - initiating diagnostics and maintenance protocol");
        } else if (nextHandler != null) {
            nextHandler.handleRequest(request);
        }
    }
}